-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNMobile] Add media caption when adding an image or video #28469
Conversation
If the video already has a caption value it will added in the block.
Size Change: 0 B Total Size: 1.37 MB ℹ️ View Unchanged
|
Hi @fluiddot since I am reviewing the associated WP Android and FluxC PRs I was thinking to add myself as a reviewer here? Just to verify, do you want me to take a look at these changes as yet? Let me know your thoughts. Thank you. |
👋 @jd-alexander yeah it would be nice if you assign yourself as a reviewer in this PR. I was waiting for the native PRs to be ready because potential changes there might imply to update this part but I'd appreciate feedback here too, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these changes @fluiddot Things are looking good so far. The only blocker for merging in these changes from an Android point of view is that the caption value is not being propagated on the jetpack and Atomic sites. I started looking into the Jetpack code and I found one of the places see where the value of the caption is being passed via the Jetpack functions that represent all requests/responses for external media.
I am going to some more diagnostics from the HTTP layer soon to see if I can figure out what's happening.
So the results from my checks so far are as follows:
Is this behavior also taking place on iOS? |
Yeah that's the issue I spotted while testing and I also have the impression that is related to that endpoint. However it can only be reproduced on sites connected with Jetpack, the same endpoint on WP.com regular sites returns the caption on the JSON result 🤔 . On iOS this is not happening because it doesn't use the I'll keep investigating the issue just in case it's something related to Jetpack, if that's case I'll open an issue there with the insights. |
Indeed! I realized this as well.
Makes sense
Yes, that's a good idea. |
Doing some cleanup to old PRs. This draft PR seems staled. Is it still relevant, should we close it? |
No, no longer relevant. I'll close it, thanks for the heads up 🙇 ! |
Related PRs
gutenberg-mobile
WordPress-iOS
WordPress-Android
WordPress-FluxC-Android
Description
This PR addresses the following topics:
Upload credit/attribution of photos from free photo library
The idea is to upload as the caption of the media item the credit/attribution from photos that we get from the free photo library (Pexels). The changes for this have been applied in the native projects (iOS and Android).
Include caption of media items when inserting them into a block
This covers the Image and Video block.
How has this been tested?
Image
The following steps are for iOS version but they're very similar on Android.
+
button.Image
block.ADD IMAGE
.Free Photo Library
Video
The following steps are for iOS version but they're very similar on Android.
For this flow a site with a premium plan is required.
+
button.Choose from My device
button.+
button.Video
block.ADD VIDEO
.WordPress Media Library
Screenshots
Types of changes
Bug fix
Checklist: